//
//  CLoginView.h
//  HCHK_iphone
//
//  Created by yilong zhang on 11-12-31.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "CUser.h"
#import "AppConfig.h"
#import "UIViewEx.h"
#import "CTextField.h"

@class CUser;
@class CTextField;

@interface CLoginView : UIViewEx <UITextFieldDelegate>

@property (nonatomic, assign) UIView        *m_BackView;
@property (nonatomic, assign) UIView        *m_PanelView;
@property (nonatomic, assign) UIView        *m_NamePanel;
@property (nonatomic, assign) CTextField    *m_LoginName;
@property (nonatomic, assign) CTextField    *m_LoginPwd;
@property (nonatomic, assign) CTextField    *m_Email;
@property (nonatomic, assign) UIButton      *m_FindPwdBtn;
@property (nonatomic, assign) UIButton      *m_LoginBtn;
@property (nonatomic, assign) UIButton      *m_LogoutBtn;
@property (nonatomic, assign) UIButton      *m_RegisterBtn;
@property (nonatomic, assign) UIButton      *m_FindComitBtn;
@property (nonatomic, assign) UIButton      *m_FindCancelBtn;

@property (nonatomic, assign) id            m_Target;
@property (nonatomic, assign) SEL           m_Action;

-(void)OnButtonDown:(UIButton*)sender;
-(void)OnTextFieldChanged:(UITextField*)textfield;
-(void)HiddenKeyboard;
-(void)SetLoginViewInfo:(CUser*)user;

@end
